#include "myThreadPool.hpp"

int main(){
    ThreadPool<int>::getInstance()->start();
    
    int cnt = 0;
    while (1){
        ThreadPool<int>::getInstance()->pushTask (++ cnt);
        cout << "push task: " << cnt << endl;
        sleep(1);
    }

    return 0;
}